<%-- 
    Document   : manageroom
    Created on : Jan 18, 2012, 7:03:48 PM
    Author     : Ketsaraporn
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html:html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        
        <title>Manage Location</title>
    </head>
    <body>
        <html:form action="/manageLocation.do?dispatch=doManageLocation">
            <div class="content">
                <table class="threehead" cellspacing="0">
                    <tr>
                        <td width="96"><div id="linkbuttom"><a href="${pageContext.request.contextPath}/manageLocation.do?dispatch=doAddLocation">เพิ่มห้องเรียน</a></div></td>
                        <td width="15">|</td>
                        <td width="193"><html:text property="kwKeyWord" size="25"/></td>
                        <td width="466"><html:submit property="btnSearch" value="ค้นหา"/></td>
                    </tr>
                </table>
                <table class="three" cellspacing="0">

                    <tr>
                        <td colspan="7"><strong>แสดงข้อมูลห้องเรียน</strong></td>
                    </tr>
                    <tr>

                        <th width="125">ลำดับ</th>
                        <th width="537">ชื่อห้องเรียน</th>
                        <th width="110">การจัดการ</th>
                    </tr>                
                    <logic:iterate id="list" name="manageLocationForm" property="locationList" indexId="seq">
                        <tr> 
                            <td><div align="left">${seq + 1}</div></td>
                            <td><div align="left">${list.locRoom}</div></td>
                            <td><div id="linkbuttom">
                                    <a href="${pageContext.request.contextPath}/manageLocation.do?dispatch=doDeleteLocation&locationId=${list.locId}" onclick="return confirm('ต้องการลบห้องเรียนใช่หรือไม่?');"><u>ลบ</u></a>                                                           
                                </div>
                            </td>
                        </tr>
                    </logic:iterate>
                </table>                 
            </div> 
        </html:form>       
    </body>
</html:html>

